package com.daka.dao;

import com.daka.entity.Volunteer;
import com.daka.mybatis.SQLMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "volunteerDao")
@SQLMapper
public interface VolunteerDao {
    int deleteByPrimaryKey(Long id);

    int insert(Volunteer record);

    int insertSelective(Volunteer record);

    int insertBatch(List<Volunteer> volunteerList);

    Volunteer selectByPrimaryKey(Long id);

    List<Volunteer> selectByCardNo(@Param("cardNo") String cardNo);

    List<String> selectByCardNoGroup();

    Volunteer selectByOldId(Integer oldId);

    List<Volunteer> selectByStatement(Volunteer record);

    int selectByStatementCount(Volunteer record);

    int updateByPrimaryKeySelective(Volunteer record);
}